perm filename 5[4,BGB]1 blob sn#075339 filedate 1973-12-05 generic text, type C, neo UTF8
COMMENT āŠ—   VALID 00020 PAGES
C REC  PAGE   DESCRIPTION
C00001 00001
C00003 00002	4.5	GEOMED Node Formats.
C00004 00003	 1  M	Empty
C00005 00004	 2  U	Universe
C00006 00005	 3  S	SUN
C00007 00006	 4  C	Camera
C00008 00007	 5  W	World
C00009 00008	 6  D	Window
C00010 00009	 7  I	Image
C00011 00010	10  T	Text
C00012 00011	11  X	Xnode (User node)
C00013 00012	12  Y	Ynode (Currently general purpose node)
C00014 00013	13  Z	Znode (Data node)
C00015 00014	14  B	Body
C00016 00015	15  F	Face
C00017 00016	16  E	Edge
C00019 00017	17  V	Vertex
C00020 00018	Type Bits (0-11)
C00025 00019	Type Bits 14-35
C00029 00020
C00032 ENDMK
CāŠ—;
4.5	GEOMED Node Formats.

 0  R	Frame

    ----------------------------
-3 |		xwc		|	X
-2 |		ywc		|	Y   World coordinates
-1 |		zwc		|	Z
 0 |		ix		|	X
 1 |		iy		|	Y   i Unit vector
 2 |		iz		|	Z
 3 |		jx		|	X
 4 |		jy		|	Y   j Unit vector
 5 |		jz		|	Z
 6 |		kx		|	X
 7 |		ky		|	Y   k Unit vector
 8 |		kz		|	Z
    ----------------------------

 1  M	Empty

    ----------------------------
-3 |		    0 or ptr	|
-2 |				|
-1 |				|
 0 |	type		      1	|
 1 |		     (Avail)	|
 2 |				|
 3 |				|
 4 |				|
 5 |				|
 6 |				|
 7 |				|
 8 |				|
    ----------------------------

 2  U	Universe

    ----------------------------
-3 |		   (Coresize)	|
-2 |		      Avail	|
-1 |		   Block Count	|
 0 |	type		      2	|
 1 |		     (Avail)	|
 2 |		    		|  Contains base of free storage for I/O
 3 |				|
 4 |		       son	|  World Ring
 5 |				|
 6 |				|
 7 |				|
 8 |				|
    ----------------------------

 3  S	SUN

    ----------------------------
-3 |				|
-2 |				|
-1 |				|
 0 |	type		      3	|
 1 |				|
 2 |				|
 3 |				|
 4 |				|
 5 |				|
 6 |				|
 7 |				|
 8 |				|
    ----------------------------

 4  C	Camera

    ----------------------------
-3 |		scalex		|
-2 |		scaley		|
-1 |		scalez		|
 0 |	type		      4	|
 1 |	pdx		ldx	|
 2 |	pdy		ldy	|	Physical and logical raster size
 3 |	focal		ldz	|
 4 |	DAD		SON	|	DAD(camera)=universe
 5 |	BRO		SIS	|	World ring
 6 |		       FRAME	|	Camera frame of reference
 7 |				|
 8 |				|
    ----------------------------

 5  W	World

    ----------------------------
-3 |				|
-2 |		pname1		|
-1 |		pname2		|
 0 |	type		      5	|
 1 |			PFACE	|	Potentially visible face list
 2 |	NED		PED	|	Ends of potentionally visible edge list
 3 |				|	After SHOW, PED is head of visible edge list
 4 |	DAD		SON	|	DAD(world)=universe
 5 |	BRO		SIS	|	World ring
 6 |			FRAME	|	World frame
 7 |	CW		CCW	|	Body ring (all bodies in this world)
 8 |				|
    ----------------------------

 6  D	Window

    ----------------------------
-3 |	sx		sy	|	Source origin
-2 |	ox		oy	|	Object origin
-1 |		mag		|	Magnification
 0 |	type	      	      6	|
 1 |	XL		XH	|	2D Clipper window
 2 |	YL		YH	|
 3 |				|
 4 |	DAD		SON	|	DAD(window)=universe
 5 |	BRO		SIS	|	World ring
 6 |	ALT		ALT2	|	ALT(window)=camera, ALT2(window)=world or image
 7 |				|
 8 |				|
    ----------------------------

 7  I	Image

    ----------------------------
-3 |				|
-2 |				|
-1 |				|
 0 |	type		      7	|
 1 |	NFACE		PFACE	|	Face ring
 2 |	NED		PED	|	Edge ring
 3 |	NVT		PVT	|	Vertex ring
 4 |	DAD		SON	|	DAD(image)=universe
 5 |	BRO		DAD	|	World ring
 6 |				|
 7 |				|
 8 |				|
    ----------------------------

10  T	Text

    ----------------------------
-3 |		---		|
-2 |		---		|
-1 |	TCW		TCCW	|
 0 |	type		     10	|
 1 |	ASCIZ/Text goes here/	|
 2 |				|
 3 |				|
 4 |				|
 5 |				|
 6 |				|
 7 |				|
 8 |				|
    ----------------------------

If CONBIT is on, the line is continued in the next text node.
11  X	Xnode (User node)
(never touched by GEM)

    ----------------------------
-3 |				|
-2 |				|
-1 |				|
 0 |	type		     11	|
 1 |				|
 2 |				|
 3 |				|
 4 |				|
 5 |				|
 6 |				|
 7 |				|
 8 |				|
    ----------------------------

12  Y	Ynode (Currently general purpose node)
(See Y-0 thru Y-1)

    ----------------------------
-3 |				|
-2 |				|
-1 |				|
 0 |	type		     12	|
 1 |				|
 2 |	PY		NY	|
 3 |				|
 4 |				|
 5 |				|
 6 |				|
 7 |	ytype	reloc	  	|	Ytype in bits 0-5, reloc in 6-17,23-35
 8 |	CAR8		CDR8	|
    ----------------------------

	At present Y-nodes are used to contain
arrowhead parameters and text headers.
13  Z	Znode (Data node)
(currently not used, reserved for NEWTON)

    ----------------------------
-3 |				|
-2 |				|
-1 |				|
 0 |	type		     13	|
 1 |				|
 2 |				|
 3 |				|
 4 |				|
 5 |				|
 6 |				|
 7 |				|
 8 |				|
    ----------------------------

14  B	Body

    ----------------------------
-3 |				|
-2 |		pname1		|
-1 |		pname2		|
 0 |	type		     14	|
 1 |	NFACE		PFACE	|	Face ring
 2 |	NED		PED	|	Edge ring
 3 |	NVT		PVT	|	Vertex ring
 4 |	DAD		SON	|	Parts tree
 5 |	BRO		SIS	|	Parts tree
 6 |	ALT		FRAME	|	ALT temporary, FRAME is body frame of reference
 7 |	CW		CCW	|	Body ring
 8 |	CAR8		CDR8	|	Reserved for users
    ----------------------------

15  F	Face

    ----------------------------
-3 |		AA		|	Face coefficients (Perspective coordinates)
-2 |		BB		|
-1 |		CC		|	AA x + BB Y + CC Z = KK
 0 |	type		     15	|
 1 |	NFACE		PFACE	|	Face ring
 2 |	(NCNT)		PED	|	PED: First Edge
 3 |		KK		|	[Face coefficient]
 4 |	(DAD)		(SON)	|	(Nested polygon tree)
 5 |	(BRO)		(SIS)	|
 6 |	ALT		POTEN	|	ALT temporary,,Potentially visible face list
 7 |		QQ		|	Photometric characteristics (4 9-bit bytes, CRBG)
 8 |	CAR8		CDR8	|	Reserved for users
    ----------------------------

16  E	Edge

    ----------------------------
-3 |	x1dc	AA	y1dc	|	2D Clipper:  Edge display coordinates
-2 |	x2dc	BB	x2dc	|	OCCULT:  2D Edge coefficients  AA Xpp + BB Ypp + CC = 0
-1 |	naf	CC	paf	|	Body Intersection: Temperaries
 0 |	type		     16	|
 1 |	NFACE		PFACE	|	Two Faces of the edge
 2 |	NED		PED	|	Edge ring
 3 |	NVT		PVT	|	Two vertices of the edge
 4 |	NCW		PCW	|	Wings:  Negative and positive clockwise
 5 |	NCCW		PCCW	|	Wings:  Negative and postive counter-clockwise
 6 |	ALT		ALT2	|	Temperaries,  ALT2 is visible edge list
 7 |	UFACE		PBODY	|	[OCCULT, BIN] Under[Over]face
 8 |	CAR8		CDR8	|	Reserved for users
    ----------------------------

17  V	Vertex

    ----------------------------
-3 |		Xwc		|	X
-2 |		Ywc		|	Y   World coordinates
-1 |		Zwc		|	Z
 0 |	type		     17	|
 1 |	xdc		ydc	|	Display coordinates (currently REAL)
 2 |	TJOINT/PY	PED	|	OCCULT: TJOINT, GEOMED: PY,,First edge
 3 |	NVT		PVT	|	Vertex ring
 4 |		Xpp		|	X
 5 |		Ypp		|	Y   Perspective projected
 6 |	ALT	Zpp	ALT2	|	Z or temperary
 7 |	CAR7		CDR7	|	Temperary
 8 |	CAR8		CDR8	|	Reserved for users
    ----------------------------

Type Bits (0-11)

 ___________________________________________________________________
|  |	    |	     |	      |	       |			    |
|  |  BODY  |  FACE  |  EDGE  | VERTEX |	COMMENTS	    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       | Must be zero to destingish |
| 0|   0    |	0    |	 0    |	  0    | frame nodes.		    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       | BDL Body Disable Frame	    |
| 1|(BDLBIT)|  PZZ   |	PZZ   |	 PZZ   | PZZ Pos. Zpp(behind camera)|
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
| 2| TMPBIT | TMPBIT | TMPBIT | TMPBIT | Temperary structure	    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       | BDV Body Disable Vertices  |
| 3|(BDVBIT)|        | DARKEN | JUTBIT | JUT Joint under TJOINT	    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       | BDP Body Disable Parts,    |
| 4|(BDPBIT)|        | SHARP  | JOTBIT | JOT Joint over TJOINT      |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       | WASP(see EEGLUE, EULER.FAI)|
| 5|        |        |  WASP  | NORTH  | NORTH - Above window	    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
| 6|        |        |        | SOUTH  | SOUTH - Below window	    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
| 7|        |        |        |  EAST  | EAST - Right of window	    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
| 8|        |        |        |  WEST  | WEST - Left of window	    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       | Must be zero to destingish |
| 9|   0    |	0    |	 0    |	  0    | frame nodes.		    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
|10|        |  NZZ   |	NZZ   |	 NZZ   | NZZ Neg. Zpp(before camera)|
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
|11|        |        | FOLDED |        |			    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       | [OCCULT]		    |
|12| VISIBLE| VISIBLE| VISIBLE| VISIBLE| Really visible		    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       | [OCCULT]		    |
|13| POTENT | POTENT | POTENT | POTENT | Potentially visible	    |
|__|________|________|________|________|____________________________|
Type Bits 14-35

 ___________________________________________________________________
|  |	    |	     |	      |	       |			    |
|  |  BODY  |  FACE  |  EDGE  | VERTEX |	COMMENTS	    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
|14|   0    |   0    |   0    |  VBIT  | This is a VERTEX	    |
|15|   0    |   0    |  EBIT  |   0    | This is a EDGE		    |
|16|   0    |  FBIT  |   0    |   0    | This is a FACE		    |
|17|  BBIT  |   0    |   0    |   0    | This is a BODY
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
|18| TBIT1  | TBIT1  | TBIT1  | TBIT1  |			    |
|191 TBIT2  | TBIT2  | TBIT2  | TBIT2  | GEM general purpose temp.  |
|20| TBIT3  | TBIT3  | TBIT3  | TBIT3  |			    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
|21| UBIT1  | UBIT1  | UBIT1  | UBIT1  |			    |
|221 UBIT2  | UBIT2  | UBIT2  | UBIT2  | User general purpose bits  |
|23| UBIT3  | UBIT3  | UBIT3  | UBIT3  |			    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
|24|	    |	     |	      |	       |			    |
|25|	    |	     |	      |	       |			    |
|26|	    |	     |	      |	       | Reserved for GEM	    |
|27|	    |	     |	      |	       |			    |
|28|	    |	     |	      |	       |			    |
|29|	    |	     |	      |	       |			    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
|30|  PBIT  | (PBIT) |   0    |   0    | May be in a parts tree	    |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
|31| GCBIT  | GCBIT  | GCBIT  | GCBIT  | Garbage collector's mark   |
|__|________|________|________|________|____________________________|
|  |	    |	     |	      |	       |			    |
|32|   1    |	1    |	 1    |	  1    |   T			    |
|33|   1    |	1    |	 1    |	  1    |   Y			    |
|34|   0    |	0    |	 1    |	  1    |   P			    |
|35|   0    |	1    |	 0    |	  1    |   E			    |
|__|________|________|________|________|____________________________|